import { IParam } from '@/core';
import { OAUTH_CLIENT_DETAILSServiceBase } from './oauth-client-details-service-base';

/**
 * oauth客户端信息服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class OAUTH_CLIENT_DETAILSService
 * @extends OAUTH_CLIENT_DETAILSServiceBase
 */
export class OAUTH_CLIENT_DETAILSService extends OAUTH_CLIENT_DETAILSServiceBase {
	/**
	 * 基础数据服务实例
	 *
	 * @private
	 * @type { OAUTH_CLIENT_DETAILSService }
	 * @memberof OAUTH_CLIENT_DETAILSService
	 */
	private static basicDataServiceInstance: OAUTH_CLIENT_DETAILSService;

	/**
	 * 数据服务存储Map对象
	 *
	 * @private
	 * @type {Map<string, any>}
	 * @memberof OAUTH_CLIENT_DETAILSService
	 */
	private static dataServiceMap: Map<string, any> = new Map();

	/**
	 * Creates an instance of OAUTH_CLIENT_DETAILSService.
	 * @memberof OAUTH_CLIENT_DETAILSService
	 */
	constructor(opts?: IParam) {
		super(opts);
	}

	/**
	 * 获取实例
	 *
	 * @static
	 * @param 应用上下文
	 * @return {*}  { OAUTH_CLIENT_DETAILSService }
	 * @memberof OAUTH_CLIENT_DETAILSService
	 */
	static getInstance(opts?: IParam): OAUTH_CLIENT_DETAILSService {
		if (!this.basicDataServiceInstance) {
			this.basicDataServiceInstance = new OAUTH_CLIENT_DETAILSService(opts);
		}
		return this.basicDataServiceInstance;
	}
}
export default OAUTH_CLIENT_DETAILSService;
